package com.qigao.mall.commons.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.RandomUtils;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author luiz
 * @Title: com.qigao.mall.commons.dto
 * @ProjectName three-mall
 * @date 2019-11-2019/11/1 14:07
 * @Description:
 */
@ApiModel("商品结果")
public class ItemResultDto {

    /**
     * 商品编号
     */
    @ApiModelProperty("商品编号")
    private String itemNo;
    /**
     * 标题
     */
    @ApiModelProperty("商品标题")
    private String itemTitle;
    @ApiModelProperty("商品子标题")
    private String subTitle;
    @ApiModelProperty("一级分类")
    private String catNo1;
    @ApiModelProperty("一级分类名称")
    private String catName1;
    @ApiModelProperty("状态 1:有效 0:无效")
    private String status;
    @ApiModelProperty("状态 1:有效 0:无效")
    private String statusName;
    @ApiModelProperty("商品描述")
    private String itemDes;
    private Integer id;

    @ApiModelProperty("销售数量")
    private Integer saleNum;

    /**
     * 商品库存列表
     */
    @ApiModelProperty("商品库存列表")
    private List<ItemSkuResultDto> itemSkuResultDtos;
    /**
     * 顶部预览商品图片列表
     */
    @ApiModelProperty("顶部预览商品图片列表")
    private List<ItemPicResultDto> itemPicTopResultDtoList;
    /**
     * 底部详情商品图片列表
     */
    @ApiModelProperty("底部详情商品图片列表")
    private List<ItemPicResultDto> itemPicDetailResultDtoList;

    @ApiModelProperty("二级分类")
    private String catNo2;
    @ApiModelProperty("二级分类名称")
    private String catName2;
    @ApiModelProperty("三级分类")
    private String catNo3;
    @ApiModelProperty("三级分类名称")
    private String catName3;
    @ApiModelProperty("品牌编号")
    private Integer brandId;
    @ApiModelProperty("商户号")
    private String merNo;
    @ApiModelProperty("商户名称")
    private String merName;
    @ApiModelProperty("店铺号")
    private String shopNo;
    @ApiModelProperty("店铺名称")
    private String shopName;

    private String specifications;

    private String specTemplate;

    private String packingList;

    private String afterService;


    private String stockType;
    @ApiModelProperty("成本价")
    private BigDecimal cost;
    @ApiModelProperty("销售价")
    private BigDecimal price;
    @ApiModelProperty("库存数量")
    private BigDecimal stockNum;

    private String picUrl;

    private String narrowPicUrl;

    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }

    public String getItemTitle() {
        return itemTitle;
    }

    public void setItemTitle(String itemTitle) {
        this.itemTitle = itemTitle;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getCatNo1() {
        return catNo1;
    }

    public void setCatNo1(String catNo1) {
        this.catNo1 = catNo1;
    }

    public String getCatName1() {
        return catName1;
    }

    public void setCatName1(String catName1) {
        this.catName1 = catName1;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getItemDes() {
        return itemDes;
    }

    public void setItemDes(String itemDes) {
        this.itemDes = itemDes;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 销量随机显示
     * @return
     */
    public Integer getSaleNum() {
        return RandomUtils.nextInt(1000,1000000);
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public List<ItemSkuResultDto> getItemSkuResultDtos() {
        return itemSkuResultDtos;
    }

    public void setItemSkuResultDtos(List<ItemSkuResultDto> itemSkuResultDtos) {
        this.itemSkuResultDtos = itemSkuResultDtos;
    }

    public List<ItemPicResultDto> getItemPicTopResultDtoList() {
        return itemPicTopResultDtoList;
    }

    public void setItemPicTopResultDtoList(List<ItemPicResultDto> itemPicTopResultDtoList) {
        this.itemPicTopResultDtoList = itemPicTopResultDtoList;
    }

    public List<ItemPicResultDto> getItemPicDetailResultDtoList() {
        return itemPicDetailResultDtoList;
    }

    public void setItemPicDetailResultDtoList(List<ItemPicResultDto> itemPicDetailResultDtoList) {
        this.itemPicDetailResultDtoList = itemPicDetailResultDtoList;
    }

    public String getCatNo2() {
        return catNo2;
    }

    public void setCatNo2(String catNo2) {
        this.catNo2 = catNo2;
    }

    public String getCatName2() {
        return catName2;
    }

    public void setCatName2(String catName2) {
        this.catName2 = catName2;
    }

    public String getCatNo3() {
        return catNo3;
    }

    public void setCatNo3(String catNo3) {
        this.catNo3 = catNo3;
    }

    public String getCatName3() {
        return catName3;
    }

    public void setCatName3(String catName3) {
        this.catName3 = catName3;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getMerNo() {
        return merNo;
    }

    public void setMerNo(String merNo) {
        this.merNo = merNo;
    }

    public String getMerName() {
        return merName;
    }

    public void setMerName(String merName) {
        this.merName = merName;
    }

    public String getShopNo() {
        return shopNo;
    }

    public void setShopNo(String shopNo) {
        this.shopNo = shopNo;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public String getSpecTemplate() {
        return specTemplate;
    }

    public void setSpecTemplate(String specTemplate) {
        this.specTemplate = specTemplate;
    }

    public String getPackingList() {
        return packingList;
    }

    public void setPackingList(String packingList) {
        this.packingList = packingList;
    }

    public String getAfterService() {
        return afterService;
    }

    public void setAfterService(String afterService) {
        this.afterService = afterService;
    }

    public String getStockType() {
        return stockType;
    }

    public void setStockType(String stockType) {
        this.stockType = stockType;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getStockNum() {
        return stockNum;
    }

    public void setStockNum(BigDecimal stockNum) {
        this.stockNum = stockNum;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getNarrowPicUrl() {
        return narrowPicUrl;
    }

    public void setNarrowPicUrl(String narrowPicUrl) {
        this.narrowPicUrl = narrowPicUrl;
    }
}
